package com.qyhl.school.school.center;


import com.qyhl.webtv.commonlib.entity.school.SchoolCenterBean;
import com.qyhl.webtv.commonlib.entity.school.SchoolCertificateBean;

public class SchoolCenterPresenter implements SchoolCenterContract.SchoolCenterPresenter {
    private SchoolCenterContract.SchoolCenterView mView;
    private SchoolCenterModel mModel;

    public SchoolCenterPresenter(SchoolCenterContract.SchoolCenterView mView) {
        this.mView = mView;
        this.mModel = new SchoolCenterModel(this);
    }

    @Override
    public void getData(String username) {
        mModel.getData(username);
    }

    @Override
    public void getCertificate(String username) {
        mModel.getCertificate(username);
    }

    @Override
    public void setData(SchoolCenterBean bean) {
        mView.setData(bean);
    }

    @Override
    public void setCertificate(SchoolCertificateBean bean) {
        mView.setCertificate(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }

    @Override
    public void setCertificateError(String msg) {
        mView.setCertificateError(msg);
    }
}
